package com.lanou.service;

import com.lanou.dao.DepDao;
import com.lanou.dao.DepDaoImpl;
import com.lanou.domain.CrmDepartment;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by lanouhn on 17/9/28.
 */
@Transactional
public class DepServiceImpl implements DepService{


    DepDao depDao;

    //查询部门信息

    @Override
    public List<CrmDepartment> findAll() {
        System.out.println("servicec层......");
        return depDao.findAll();
    }


    public DepDao getDepDao() {
        return depDao;
    }

    public void setDepDao(DepDao depDao) {
        this.depDao = depDao;
    }
}
